<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加教练</title>
    <th:block th:include="fragments/header :: header"/>
</head>
<body class="easyui-layout">
<div data-options="region:'center',border:false">
    <form id="coachForm" action="" method="post" style="padding-top: 10px;padding-left: 20px;">
        <table width="90%">
            <tr>
                <td>姓名:</td>
                <td>
                    <input class="easyui-textbox" name="name" style="width: 90%" data-options="required:true"/>
                </td>
            </tr>
            <tr>
                <td>生日:</td>
                <td>
                    <!-- 加验证不得晚于当前时间 -->
                    <input class="easyui-datebox" name="birthday" style="width: 90%" data-options="required:true">
                </td>
            </tr>
        </table>
    </form>
</div>
<script>
    function submitForm() {
        $("#coachForm").form('submit',{
            url:'/markt/coach/save',
            onSubmit:function () {
                return $(this).form('enableValidation').form('validate');
            }
        });
    }
</script>
</body>
</html>
